package com.example.practice.entity;

import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;
import java.io.Serializable;

/**
 * (Activity)实体类
 *
 * @author makejava
 * @since 2023-12-25 16:43:54
 */
public class Activity implements Serializable {
    private static final long serialVersionUID = -20028970101987945L;

    private Integer id;

    private String name;

    private Integer type;

    private Integer creatorId;
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private Date activitySignStartTime;
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private Date activityConStartTime;

    private Integer activityMaxNum;

    private Integer activityNum;

    private String activityDescription;
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private Date activitySignEndTime;
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private Date activityConEndTime;

    private Integer status;


    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public Integer getType() {
        return type;
    }

    public void setType(Integer type) {
        this.type = type;
    }

    public Integer getCreatorId() {
        return creatorId;
    }

    public void setCreatorId(Integer creatorId) {
        this.creatorId = creatorId;
    }

    public Date getActivitySignStartTime() {
        return activitySignStartTime;
    }

    public void setActivitySignStartTime(Date activitySignStartTime) {
        this.activitySignStartTime = activitySignStartTime;
    }

    public Date getActivityConStartTime() {
        return activityConStartTime;
    }

    public void setActivityConStartTime(Date activityConStartTime) {
        this.activityConStartTime = activityConStartTime;
    }

    public Integer getActivityMaxNum() {
        return activityMaxNum;
    }

    public void setActivityMaxNum(Integer activityMaxNum) {
        this.activityMaxNum = activityMaxNum;
    }

    public Integer getActivityNum() {
        return activityNum;
    }

    public void setActivityNum(Integer activityNum) {
        this.activityNum = activityNum;
    }

    public String getActivityDescription() {
        return activityDescription;
    }

    public void setActivityDescription(String activityDescription) {
        this.activityDescription = activityDescription;
    }

    public Date getActivitySignEndTime() {
        return activitySignEndTime;
    }

    public void setActivitySignEndTime(Date activitySignEndTime) {
        this.activitySignEndTime = activitySignEndTime;
    }

    public Date getActivityConEndTime() {
        return activityConEndTime;
    }

    public void setActivityConEndTime(Date activityConEndTime) {
        this.activityConEndTime = activityConEndTime;
    }

    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }

    @Override
    public String toString() {
        return "Activity{" +
                "id=" + id +
                ", name='" + name + '\'' +
                ", type=" + type +
                ", creatorId=" + creatorId +
                ", activitySignStartTime=" + activitySignStartTime +
                ", activityConStartTime=" + activityConStartTime +
                ", activityMaxNum=" + activityMaxNum +
                ", activityNum=" + activityNum +
                ", activityDescription='" + activityDescription + '\'' +
                ", activitySignEndTime=" + activitySignEndTime +
                ", activityConEndTime=" + activityConEndTime +
                ", status=" + status +
                '}';
    }
}

